package com.guchenghao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @User 20675
 * @Author gch
 * @Date 2025/3/26 20:08
 * @Description <br />
 * <p>
 * <br />
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("blog_articles")
public class Article {
    @TableId
    private Integer articleId;
    private String title;
    private Integer commentStatus;  // 0为不能评论，1为可以评论
    private Integer hidden;         // 0为可见，1为不可见
    private String description;
    private Date publishDate;
    private String content;
    @TableField(exist = false)
    Page<Comment> commentPage;
}
